import request from '@/utils/request'

export function getHomeProjectList(data) {
  return request({
    url: '/home/project/list',
    method: 'post',
    data
  })
}

export function getHomeProject(id) {
  return request({
    url: '/home/project/get',
    method: 'post',
    params: { id }
  })
}

export function addHomeProject(data) {
  return request({
    url: '/home/project/add',
    method: 'post',
    data
  })
}

export function editHomeProject(data) {
  return request({
    url: '/home/project/edit',
    method: 'post',
    data
  })
}

export function editHomeProjectStatus(id, status) {
  return request({
    url: '/home/project/edit_status',
    method: 'post',
    params: { id, status }
  })
}
